package BandB.Tool.GPhoneManager.FileExplorer.Installer;

import java.io.File;
import java.text.SimpleDateFormat;
import java.util.Date;

public class ApplicationInfo {
	private android.content.pm.ApplicationInfo mInfo;
	private String mLastModified;
	private String mSize;
	private boolean mChecked;
	private File mFile;

	public void setInfo(android.content.pm.ApplicationInfo info) {
		mInfo = info;
	}
	
	public void setFile(File file){
		mFile = file;
	}
	
	public File getFile()
	{
		return mFile;
	}

	public android.content.pm.ApplicationInfo getInfo() {
		return mInfo;
	}

	public boolean isChecked() {
		return mChecked;
	}

	public void setChecked(boolean b) {
		mChecked = b;
	}

	public void setSize(Long size) {
		long kbSize = size >> 10;
		mSize = String.valueOf(kbSize) + "KB";
	}

	public String getSize() {
		return mSize;
	}

	public void setLastModified(long time) {
		SimpleDateFormat formater = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
		mSize = formater.format(new Date(time));
	}

	public String getLastModified() {
		return mLastModified;
	}

}
